package com.wwdx.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author liguoliang
 * @date 2018-09-20 11:28:08
 */
@Table(name = "wwdx_openauth")
@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties({"id","userName","principalName","qrcodeUrl","funcInfo","status","serviceTypeInfo","verifyTypeInfo"})
public class WwdxOpenAuthModel implements Serializable{

    @Id
    @GeneratedValue
    private Long id;
    private String authorizerAppid;
    private String nickName;
    private String userName;
    private String headImg;
    private String principalName;
    private String qrcodeUrl;
    private String signature;
    private String funcInfo;
    private String openId;
    /**
     * 是否授权 1是0否
     */
    private Integer status;
    private Integer serviceTypeInfo;
    private Integer verifyTypeInfo;
}